﻿using System;
using System.Collections;

namespace SSTestAPI
{
    public class PlantsComparer : IComparer
    {
        int IComparer.Compare(Object x, Object y)
        {
            return ((new CaseInsensitiveComparer()).Compare(((Plant)y).getLifetime(), ((Plant)x).getLifetime()));
        }
    }
}
